home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Pgetuid(2) Aug. 1, 1992 Pgetuid(2)
-
-
- N✓NA✓AM✓ME✓E
- Pgetuid, Pgetgid - get the current user or group id
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- WORD Pgetuid();
- WORD Pgetgid();
- WORD Pgeteuid();
- WORD Pgetegid();
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- _✓P_✓g_✓e_✓t_✓u_✓i_✓d returns the real user id of the currently running
- process. This is a number between 0 and 255 which deter-
- mines the access permissions of the process, and which may
- be used in multi-user systems to distinguish different
- users of the system.
-
-
- Similarly, _✓P_✓g_✓e_✓t_✓g_✓i_✓d returns the real group id of the cur-
- rently running process; this will also be a number between
- 0 and 255.
-
-
- _✓P_✓g_✓e_✓t_✓e_✓u_✓i_✓d and _✓P_✓g_✓e_✓t_✓e_✓g_✓i_✓d are similar to _✓P_✓g_✓e_✓t_✓u_✓i_✓d and _✓P_✓g_✓e_✓t_✓g_✓i_✓d
- respectively, except that they return the effective user
- or group id. This is normally the same as the real user
- or group id, except that if a program is run which has the
- set uid or set gid bit bit set, it will run with an effec-
- tive user or group id equal to the owner of the program
- file. Access to files is based upon the effective user or
- group id, so the set uid (and set gid) mechanism allows
- users (in particular the super user) to grant permissions
- to other users. This mechanism also exists in the Unix(tm)
- operating system.
-
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- _✓P_✓s_✓e_✓t_✓u_✓i_✓d(2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Version 0.95 MiNT Programmer's Manual 1
-
-
-